package com.wanmait.heatingrepair.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import lombok.Data;

/**
* Created by Mybatis Generator 2021/05/10
*/
@Data
@TableName(value = "complains")
public class Complains implements Serializable {
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 投诉类型id
     */
    @TableField(value = "complains_type_id")
    private Integer complainsTypeId;
    @TableField(exist = false)
    private ComplainsType complainsType;

    /**
     * 投诉的内容，包括图片等
     */
    @TableField(value = "content")
    private String content;

    /**
     * 订单id
     */
    @TableField(value = "ordersinfo_id")
    private Integer ordersinfoId;
    @TableField(exist = false)
    private Ordersinfo ordersinfo;

    /**
     * 处理时间
     */
    @TableField(value = "handle_time")
    private Timestamp handleTime;

    /**
     * 处理结果
     */
    @TableField(value = "process_result")
    private String processResult;

    /**
     * 录入时间
     */
    @TableField(value = "input_time")
    private Timestamp inputTime;

    /**
     * 处理人
     */
    @TableField(value = "admin_id")
    private String adminId;
    @TableField(exist = false)
    private Admin admin;

    @TableLogic
    @TableField(value = "enable")
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public static final String COL_COMPLAINS_TYPE_ID = "complains_type_id";

    public static final String COL_CONTENT = "content";

    public static final String COL_ORDERSINFO_ID = "ordersinfo_id";

    public static final String COL_HANDLE_TIME = "handle_time";

    public static final String COL_PROCESS_RESULT = "process_result";

    public static final String COL_INPUT_TIME = "input_time";

    public static final String COL_ADMIN_ID = "admin_id";

    public static final String COL_ENABLE = "enable";
}